home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_4
/
stow
/
stow.doc
< prev
Wrap
Text File
|
1994-08-30
|
7KB
|
157 lines
STOW V0.95ß
© August 30, 1994 by Leonard D Atkinson II
Concept: Doc of Doc's House BBS
Everything in this archive is copyright 1994 by Leonard D Atkinson II.
I'm only copyrighting this for the sake of proving that I wrote it,
otherwise anything may be done with it. I release all rights to copying
and selling of any part of this archive. It may be included in a
shareware-type archive like Aminet or the Fish disks without my permission
and sold for profit. If it is included, I'd appreciate getting word about
it, but it's not necessary.
If you still feel like giving me something, send me some email. A word of
thanks is actually more interesting than five bucks. My new address is
lda@netcom.com.
New stuff:*********************************************************************
-- Totally changed the way disks are assembled. Perfect disks can now be
made. Set waste to be 1K and if there is a disk to be made to that
precision, it will be found no matter what list of files you give it.
The main algorithm is checking EVERY combination of files until it gets
one that is good enough.
-- Added blocksize option. This should probably never be used, but just
in case: you can set the blocksize of the device being copied to. As
far as I know AmigaDOS uses 512 blocks most of the time.
-- There is a new switch that tells stow not to copy those last few files
that don't add up to full disk.
-- I figured out how much a file takes up on the disk. It's more than the
actual length of the file. If someone can correct me on this, please do,
but I'm using the formula: bump file size up to nearest block boundary,
add an extra block for each 72 blocks. So a file 963 bytes long actually
takes two blocks, 1024 bytes, plus and extra block.
-- The interface uses ReadArgs from the dos.library, so it looks like an
Amiga executable.
*******************************************************************************
What does it do?
Stow looks at files in a directory and then attempts to copy them to
floppies while wasting as little space as possible. It will do the
best job possible, but it will only try to meet your lowest expectations.
You can tell it to waste a maximum of 1K, which is two disk blocks, and
you will end up with disk as close to perfect as it gets.
This program tries to solve the problem of trying to put lots of files
from your hard disk onto many floppies without wasting any space. It
can be a very boring, long process if done by hand. SysOps have to
deal with this all the time. Well, stow should speed things up.
Technically, stow can copy files from any one directory to any number of
volumes on any device. You can back up a directory onto 440K 5.25" or even
to virtual (fms) floppies. Stow doesn't care, it just needs a name of
a device.
This is beta release because I'm not confident that I have all the bugs
worked out. If you have any questions or bug reports, I can be reached
by email or snail mail.
lda@netcom.com
or
Leon Atkinson
125 Gilger Avenue
Martinez, CA 94553
Usage: stow <input directory> <output directory> {<option>}\n");
<input directory> The directory where the files to be stowed are.
Subdirectories are ignored.
<output directory> The device files are to be copied to.
Options:
LIST <filename> Create a list of all the files stowed. This takes
the name of the file to be created or re-written.
The files are put down in the order copied, which is
also by disk. If you wish them to be sorted by name,
use the SORT command that comes with AmigaDOS.
ASSUME [n] Assume disk size. Defaults to 899072, a blank FFS. The
optional number denotes the limit, expressed as K,
which means the given number will be multiplied by 1024.
By default stow detects how much free space is left on
each disk automatically.
WASTE <n> Waste a maximum of nK per disk. After a disk is assembled
only this much space (or less) will be free. Sometimes
perfect disks (waste == 1) can't be made. Try using
the script command to preview how many disks are made
with a certain waste value.
SCRIPT <filename> Don't actually copy files, just create a script file to
be executed later. This is useful for testing, of course,
but also for previewing how well certain parameters will
make disks.
FORMAT "<options>" Format each disk before copying files to it. Inside the
required quotes put the options you wish to be passed to
the format command. Example: FORMAT "FFS NOICONS"
NAME <name> Name each disk with this prefix. This option only applies
if the format command is used. Each disk will be named
in the form: NAME_AAA, NAME_AAB, ...
VERIFY Verify each file copied. This only applies when the
script command is off (obviously).
QUIET Don't print anything to the screen.
NOSORT This option probably shouldn't be used, but just in case
I left it in. Normally files are sorted by size before
disks are made. This usually speeds the making of disks.
BLOCKSIZE <n> Set the blocksize of the output device. This defaults to
512 which is standard for AmigaDOS devices, I think. Don't
change this unless you really know what you are doing.
NOCOPYALL Don't copy files that aren't part of a perfect disk.
By default stow copies everything; the last files that
don't make a perfect disk are copied over.
Examples:
stow c: df0: LIST ram:files.txt
would copy your c: directory to multiple floppies in df0, assumes the disks
are already formatted, and puts a list of the files in a text file on RAM:
stow sys:fonts df3: LIST ram:files.txt ASSUME 440
Assumes the output device (df3:) can only handle 440K.
stow sys:uploads df0: LIST ram:files.txt SCRIPT ram:my.script ASSUME
Instead of copying the files, just make a script that can be run later.
stow c: df0: LISTram:file.list SCRIPT ram:my.script ASSUME
FORMAT "FFS NOICONS" NAME MY_ARCHIVE QUIET WASTE 6
Make a script for stowing c:, put a list of file in file.list, format the
disks as you go along, name them MY_ARCHIVE_AAA, MY_ARCHIVE_AAB, etc,
and don't print anything to the screen while doing so. Additionally,
leave no more than 6K of free space on each disk.